package com.oxchinx.product.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dell on 2018/5/23.
 */
@RestController
public class ServerController {

    @GetMapping("/msg1")
    public String msg(){
        return "this is product 'msg1'";
    }

    @GetMapping("/msg2")
    public String msg2(){
        return "this is product 'msg2'";
    }

    @GetMapping("/msg3")
    public String msg3(){
        return "this is product 'msg3'";
    }

    /**
     * feign方式调用
     * @return
     */
    @GetMapping("/msg4")
    public String msg4(){
        return "this is product 'msg4'";
    }
}
